package com.itbaizhan.swaggerdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/*在 SpringBoot 的启动类中添加@EnableSwagger2 注解。
添加此注解后表示对当前项目中全部控制器进行扫描，应用Swagger2。*/
@SpringBootApplication
@EnableSwagger2
public class SwaggerdemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SwaggerdemoApplication.class, args);
    }

}
/*启动后的访问网址：http://localhost:8080/swagger-ui.html*/